<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="node_modules/jquery/dist/jquery.js"></script>
</head>

<body>
    <input id="load" type="file" onchange="upload(this.files)" multiple/>
    <div id="dd"></div>
</body>
<script>
    function $$(obj) {
        return document.getElementById(obj);
    }

    function upload(f) {

        var str = "";
        for (var i = 0; i < f.length; i++) {
            var reader = new FileReader();
            reader.readAsDataURL(f[i]);
            reader.onload = function(e) {
                str += "<img src='" + e.target.result + "'/>";
                $$("dd").innerHTML = str;
            }
        }

    }
</script>

</html>